import App from './App'
import api from '@/api/index.js'

// #ifndef VUE3
import Vue from 'vue'
// 导入uView
import uView from "./uview-ui"


Vue.use(uView)
Vue.use(api,{name:1})

Vue.config.productionTip = false

App.mpType = 'app'


const app = new Vue({
    ...App
})
app.$mount()
// #endif


// vue3的方式
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  // 插件注册
  app.use(VueInit)
  return {
    app
  }
}
// #endif